package com.cwd.arm.common.dto.session;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * Created by yan on 21-12-7.
 */
@Data
public class AuthDto implements GrantedAuthority {

    /**
     *
     */
    private Long id;

    private String key;

    /**
     * 权限名称
     */
    private String name;

    private String authType;

    @Override
    public String getAuthority() {
        return "ROLE_"+key.toUpperCase();
    }
}
